﻿<%@ page language="java" pageEncoding="UTF-8" %>
<% 
    String context = request.getContextPath();
    request.setAttribute("context",context);
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link href="${context}/static/jquery-easyui-1.3.2/themes/gray/easyui.css" rel="stylesheet" type="text/css" />
    <link href="${context}/static/jquery-easyui-1.3.2/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="${context}/static/jquery-easyui-1.3.2/jquery-1.8.0.min.js" type="text/javascript"></script>
    <script src="${context}/static/jquery-easyui-1.3.2/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="${context}/static/jquery-easyui-1.3.2/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script src="${context}/static/scripts/json2.js" type="text/javascript"></script>
    <script src="${context}/static/scripts/common.js" type="text/javascript"></script> 
    <script type="text/javascript">
    
        function uploadComplete(result) {
            alert(JSON.stringify(result));
        }
        
        function validateImport() {
            document.getElementById("fileForm").action="${context}/UploadServlet?dir=file";
            document.getElementById("fileForm").submit();
        }
        
        
    </script>
</head>
<body>
    <form id="fileForm" method="post" enctype="multipart/form-data"  target="hidden_frame">
	    <input type="file" name="ImportPath" id="ImportPath" />
	    <input type="file" name="ImportPath1" id="ImportPath1" />
	    <input type="hidden" id="dir" name="dir" value="file" />
	    <input type="button" value="click" onclick="validateImport();" />
    </form>
    <iframe name='hidden_frame' id="hidden_frame" style="display: none"></iframe>
</body>
</html>
